package com.example.pojo;


public class Test {

    static {
        System.out.println("1");
    }

}

class B{


    static {
        System.out.println("2");
    }

    public static void main(String[] args) {
        Test a=new Test();


        String s1 = new String("zhuge");
        String s2 = s1.intern();

        System.out.println(s1 == s2);  //false


        String s3 = "aaaaa";
        String s4 = s3.intern();

        System.out.println(s3 == s4);  //true

    }
}